import { Component, OnInit } from '@angular/core';
import { BANNER_TYPE_OPTION } from '../../../constant/dictionary';
import { ActivatedRoute, Params } from '@angular/router';

@Component({
  selector: 'app-banner',
  templateUrl: './banner.component.html',
})
export class BannerComponent implements OnInit {

  bannerTyp:any [] = BANNER_TYPE_OPTION;
  type:any = 1;
  constructor( private route:ActivatedRoute,) {
  }

  ngOnInit() {
    this.route.queryParams.forEach((params: Params) => {
      this.type = +params['type'];
    });
  }



}
